package org.ihelpuoo.weboo.upload.action;

import java.io.IOException;
import java.io.InputStream;

import org.ihelpuoo.I;
import org.ihelpuoo.lang.LoaderException;
import org.ihelpuoo.parser.Parser;

class BoundaryLoader implements Parser
{
	private String	boundary;

	BoundaryLoader(String boundary)
	{
		this.boundary = boundary + I.NEW_LINE;
	}

	public void parse(InputStream ins) throws LoaderException
	{
		try
		{
			for (int i = 0; i < this.boundary.length(); i++)
				ins.read();
		}
		catch (IOException e)
		{
			throw new LoaderException(e);
		}
	}
}
